package com.colin.productservice11001.service.impl;

import com.colin.common.response.R;
import com.colin.productservice11001.mapper.ProductMapper;
import com.colin.productservice11001.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProductServiceImpl implements ProductService {

    @Autowired
    private ProductMapper productMapper;

    @Override
    public R<Boolean> changeInventory(Integer productId, Integer count) {
        return R.ok(productMapper.updateInventory(productId, count));
    }
}
